/*
 * mcu_regs.h
 *
 * MCU registers definition.
 *
 * Copyright (C) 2022 Microwell, Inc.
 * Subject to the GNU Public License, version 2.
 *
 * Author: guoming<guoming@microwell.net>
 */
#ifndef _MCU_REGS_H_
#define _MCU_REGS_H_

#ifndef CONFIG_CHIP_TYPE
#define CONFIG_CHIP_TYPE            (2)
#endif // !1

#if (CONFIG_CHIP_TYPE == 2)
#include <reg_ss888x.h>
#elif (CONFIG_CHIP_TYPE == 1)
#include <reg_ss881x.h>
#else
#include <ss881x.h>
#endif

// efr
#ifndef EXTMFP0
#define EXTMFP0             (0x12)
#endif
#ifndef EXTMFP1
#define EXTMFP1             (0x13)
#endif
#ifndef EXTMFP2
#define EXTMFP2             (0x74)
#endif
#ifndef EXTMFP3
#define EXTMFP3             (0x75)
#endif
#ifndef EXTMFP4
#define EXTMFP4             (0x76)
#endif
#ifndef EXTMFP5
#define EXTMFP5             (0x77)
#endif
#ifndef EXTMFP6
#define EXTMFP6             (0x6D)
#endif
#ifndef LDOCON0
#define LDOCON0             (0x60)
#endif
#ifndef LDOCON1
#define LDOCON1             (0x61)
#endif

#endif